package com.hc.sort.server.service;

import java.util.List;

import com.hc.sort.server.dao.CallerDao;
import com.hc.sort.server.dao.CallerDaoImpl;
import com.hc.sort.server.pojo.Caller;

public class CallerServiceImpl implements CallerService {
	CallerDao callerDao=new CallerDaoImpl();

	@Override
	public int add(Caller caller) {
		return callerDao.add(caller);
	}

	@Override
	public int delete(int id) {
		return callerDao.delete(id);
	}

	@Override
	public int update(Caller caller) {
		return callerDao.update(caller);
	}

	@Override
	public Caller get(int id) {
		return callerDao.get(id);
	}

	@Override
	public List<Caller> findAll() {
		return callerDao.findAll();
	}

	@Override
	public Caller findByWorknoAndPwd(String workNo, String password) {
		return callerDao.findByWorknoAndPwd(workNo, password);
	}

}
